public class ...Activity extends Activity{
	
 OnClickListener listener = new OnClickListener() {
   public void onClick(View v) {
    Intent intent = new Intent(ThisActivity.this, NextActivity.class);
    ThisActivity.this.startActivity(intent); }
 };
			
  public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.nextscreen);
   Button button = (Button)findViewById(R.id. ...button);
   button.setOnClickListener(buttonPressedListener); 
  }
}




